All Functions of Week 4

matrix

{base}

Creates a matrix from the given set of values.

is.na

{base}

Check if a value is NA/elements of vector are NA

data.frame

{base}

Create a data.frame from vectors

read_csv

{readr}

Read CSV files

factor

{base}

Create factor variables

recode

{dplyr}

Recode a variable

read_excel

{readxl}

Read an Excel file

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

ggplot

{GGPLOT2}

Create a ggplot graph

factor

{base}

Create a factor

setwd

{base}

Set Working Directory

write.csv

{utils}

write a csv file to a data frame

summary

{base}

Obtain summary statistics or detailed regression output

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

library

{base}

Load an R package

mutate

{dplyr}

Create new variables

as.character

{base}

Coerce a vector to character

c

{base}

Combine values/vectors into a vector

as.numeric

{base}

Coerce a vector to numeric

with

{base}

evaluate expression in the context of a data frame

filter

{dplyr}

Filter out rows of a data frame according to logical vector

lm

{stats}

Fit linear models using least squares

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

replace

{base}

Replace elements in a vector

geom_point

{GGPLOT2}

Generates a scatter plot

The end!